﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="detail-news.ascx.cs" Inherits="templates_client_usercontrols_detail_news" %>
<!-- Begin page content--> 
<asp:Repeater ID="rptnew" runat="server" onitemcommand="rptnew_ItemCommand">
 <ItemTemplate>
 <table style="margin-top:5px; width:504px;" cellpadding="0" cellspacing="0"> 
    <tr style="background-image:url(../templates/client/images/bar_title_middle.png); background-repeat:no-repeat; height:35px;">
          
        <td valign="top" align="left">
            <img src="../templates/client/images/arrow_title.png" alt="arrow_title" width="20px" style="margin-left:5px; margin-right:5px; margin-top:7px;" />
            <span class="title_bar_content" style="margin-top:10px;"><%#Eval("Ten") %></span>
            <asp:Label ID="allow_comt" runat="server" Text='<%# Eval("ChoPhepBinhLuan") %>' 
                 Visible="False"></asp:Label>
        </td>       
    </tr>
    <tr>
        <td>            
            <div class="usual" style="margin-top:10px; padding:5px; border-bottom:1px dotted #0033ff;"> 
                <p class="title_news" style="font-size:17px"><%#Eval("TieuDe") %></p>
                <span class="create_date">Đăng ngày:<%#Eval("NgayDang") %> bởi <%#Eval("TenDangNhap") %></span><br /> 
                <span class="create_date">Lượt xem:<%#Eval("LuotXem") %></span><br />
                <asp:Label ID="title" runat="server" Text='<%# Eval("TieuDe") %>' 
                 Visible="False"></asp:Label>                                                                                   
                <span style="font-style:italic">
                    <%#Eval("TomTat") %>
                </span>
                <br /><br />
                <div style="width:490px; display:block; padding:0px">                
                    <%# Eval("NoiDung") %>                
                <br />
                <div style="text-align:right">                
                    <b><i>Nguồn tin: <%#Eval("NguonTin") %></i></b>                   
                </div>
                <div style="clear:both"></div>
            </div>
            <br /> 
            <div id="frm_binhLuan" runat="server" visible="true">
            <!-- Ý kiến bạn đọc -->
            <div style="border:1px solid #9DCEFC; padding:2px;">
                <div style="background:#00aaff; height:35px; padding:10px 10px 0px 10px">
                    <span>Ý kiến bạn đọc </span>                    
                </div>
                <div class="usual" style="height:300px; overflow:scroll; padding:10px; margin-top:0px;" >
                    <asp:Repeater ID="rptbinhluan" runat="server" DataSourceID="SqlDataSourceBinhLuan">
                    <ItemTemplate>                  
                        <p class="title_news" style="font-size:17px"><%#Eval("TieuDe") %></p>
                        <span class="create_date">Ngày bình luận: <%#Eval("NgayDang") %> - bởi <%#Eval("TenDayDu") %></span><br />
                        <div style="padding-left:0px;">
                            <%#Eval("NoiDung") %>
                        </div>
                           <hr style="margin-top:0px" /> 
                     </ItemTemplate>  
                    </asp:Repeater>
                    <asp:SqlDataSource ID="SqlDataSourceBinhLuan" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        SelectCommand="Proc_TinTuc_SelectBinhLuan" 
                        SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="BaiViet" QueryStringField="news" Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </div>                
            </div>
            <!--End  Ý kiến bạn đọc -->
            <br />
            <asp:Button ID="btnYKien" runat="server" Text="Ý kiến của bạn" class="button" CommandName="ykien" /><br />
            <table class="vote" ID="vietbinhluan" runat="server">
                <tr>
                    <td>
                        <asp:TextBox ID="txtHoTen" runat="server" Width="200px" onfocus="if(this.value=='Họ tên') this.value='';" onblur="if(this.value=='') this.value='Họ tên';">Họ tên</asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Width="200px" onfocus="if(this.value=='Email') this.value='';" onblur="if(this.value=='') this.value='Email';">Email</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:TextBox ID="txtTieuDe" runat="server" Width="200px" onfocus="if(this.value=='Tiêu đề') this.value='';" onblur="if(this.value=='') this.value='Tiêu đề';">Tiêu đề</asp:TextBox>
                    </td>                    
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:TextBox ID="txtNoiDung" runat="server" class="content" TextMode="MultiLine" Height="200px" Width="100%" onfocus="if(this.value=='Nội dung') this.value='';" onblur="if(this.value=='') this.value='Nội dung';">Nội dung</asp:TextBox>
                    </td>
                </tr>                
            </table>
            <table ID="controlbinhluan" runat="server">
                <tr>
                   <td><asp:Button ID="btnGui" runat="server" Text="Gửi" class="button" CommandName="send" /></td>
                   <td><input type="reset" name="reset" id="reset" class="button" value="Nhập lại" /></td>
                   <td><asp:Button ID="btnDongLai" runat="server" Text="Đóng lại" class="button" CommandName="close" /></td>
                </tr>
            </table> 
            </div>                                         
            <br />
            <div class="usual">
            <p class="title_news">Tin cùng chuyên mục</p>                                                                                                        
            <ul class="other_news" style="margin-top:0px">
                <asp:Repeater ID="rpttop6" runat="server" DataSourceID="SqlDataSourcetop10">
                    <ItemTemplate>
                       <li>
                        <a href="<%# "chitiettintuc.aspx?news="+Eval("Id")+"&category="+Eval("ChuyenMuc")%>" onmouseout="hidetip();" onmouseover="showtip('<p style=\'margin:0 0 0 10px; font:bold 15px Arial, Helvetica, sans-serif; color:#0066ff\'><%# Eval("TieuDe") %></p><span style=\' margin-left:10px; font:italic 11px Arial, Helvetica, sans-serif; color:#00CCff\'>Đăng ngày: <%# Eval("NgayDang") %> bởi <%# Eval("TenDangNhap") %>></span><br /><ul style=\'float:left\'><li style=\'background:url(../templates/client/images/bg_img_news_home.png) no-repeat; width:120px; height:100px; margin:0px 10px 0px -30px ; display:inline-table\'><img src=\'<%#"../uploads/imagenewsupload/" + Eval("HinhAnh")%>\' alt=\'hình\' style=\'width:110px; height:88px; margin:5px 0px 0px 5px;\' /></li></ul><div><%#Eval("TomTat") %></div>');">
                         <%#Eval("TieuDe")%>   
                        </a>
                       </li>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:SqlDataSource ID="SqlDataSourcetop10" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    SelectCommand="Proc_DanhMuc_SelectTop10TinTuc" 
                    SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="idchuyenmuc" QueryStringField="category" Type="Int32" />
                        <asp:QueryStringParameter Name="idtintuc" QueryStringField="news" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource> 
            </ul>
          </div>
             <br /><br /><br /><br /><br />           
       </td>
    </tr>      
    <tr style="background-image:url(../templates/client/images/footer-page-content2.png); background-repeat:repeat-x; height:40px">
        <td>
            &nbsp;
        </td>
    </tr>    
</table>
</ItemTemplate>
</asp:Repeater>           

                                                         
<!-- Begin page content-->